﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DeviceEntity.Device.Plc.Type
{
    /// <summary>
    /// 欧姆龙
    /// </summary>
    class OmronBLL : BLL.IPlcBLL
    {
        /// <summary>
        /// 操作类
        /// </summary>
        private static OmronBLL omronBLL = null;
        /// <summary>
        /// 配置参数
        /// </summary>
        private static DeviceEntity.Model.DeviceConfigModel _deviceConfig = null;
        /// <summary>
        /// 初始化
        /// </summary>
        /// <param name="deviceConfig">配置参数</param>
        /// <returns></returns>
        public static BLL.IPlcBLL Init(DeviceEntity.Model.DeviceConfigModel deviceConfig)
        {
            if (omronBLL == null)
            {
                omronBLL = new OmronBLL();
            }
            _deviceConfig = deviceConfig;
            return omronBLL;
        }
        public async Task Read(Model.PlcParaModel plcParameter)
        {

        }
        public async Task Write(Model.PlcParaModel plcParameter)
        {

        }
    }
}
